Creating A Rest Api - Authenticating A Method In A Rest Api